<%@page import="org.h2.util.New"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"  import="org.springframework.ui.ModelMap" import="java.util.*,com.device.operating.entity.*"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../xasj/js/jquery-1.4.js"></script>
<script type="text/javascript" src="../xasj/js/framework.js"></script>
<script type="text/javascript" src="../xasj/js/form/multiselect.js"></script>
<script type="text/javascript" src="../xasj/js/form/stepForm.js" ></script>
<link  rel="stylesheet" type="text/css" id="skin"/>
<link href="../xasj/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link href="../xasj/css/skins/sky/import_skin.css" rel="stylesheet" type="text/css" themeColor="blue"/>
<script type="text/javascript">
function go(url) {
	window.location.href = url;
	}
</script>
</head>
<%
List<String[]> listip=new ArrayList<String[]>();
List<String[]> listvlan=new ArrayList<String[]>();
String[] oltnames=null;
String[] oltnums=null;
String[] oltmodel=null;
String[] oltponnums=null;
Jifang jf=null;

if(request.getAttribute("listip")!=null)
	listip=(List<String[]>)request.getAttribute("listip");
if(request.getAttribute("listvlan")!=null)
	listvlan=(List<String[]>)request.getAttribute("listvlan");
if(request.getAttribute("oltnames")!=null)
	oltnames=(String[])request.getAttribute("oltnames");
if(request.getAttribute("oltnums")!=null)
	oltnums=(String[])request.getAttribute("oltnums");
if(request.getAttribute("oltmodel")!=null)
	oltmodel=(String[])request.getAttribute("oltmodel");
if(request.getAttribute("oltponnums")!=null)
	oltponnums=(String[])request.getAttribute("oltponnums");
if(request.getAttribute("jifang")!=null)
	jf=(Jifang)request.getAttribute("jifang");
%>
<body>
<div class="position">
	<div class="center">
	<div class="left">
	<div class="right">
		<span>当前位置：数据操作>> Olt开局</span>
	</div>	
	</div>	
	</div>
</div>		
		<div  class="stepForm" stepFormTitle="">
		<table class="tableStyle" >
		<tr>
			<td colspan="13"><div align="center">工单内容</div></td>
		</tr>
		<tr>
		<td>设备机房：</td>
		<td>
		<input type="text" name="jfname" value="<%=jf.getJfname()%>"/>
		</td>
		<td>设备大局向：</td>
		<td style="width:80px;">
		<input style="width:80px;" type="text" name="djxname" value="<%=jf.getDjxname()%>"/>
		</td>
		</tr>
		<tr>
		<td>节点名称/编号</td><td>设备型号/PON口数</td>		
		<td style="width:80px;">管理ip</td>
		<td style="width:80px;">管理网关</td>
		<td style="width:105px;">pppoe vlan(请填)</td>
		<td style="width:80px;">voip vlan</td>
		<td style="width:80px;">iptv vlan</td>
		<td style="width:80px;">ylvlan</td>
		<td style="width:60px;">管理vlan</td>
		</tr>			
			<%for(String[] ip:listip){
				int i=0;
			String[] vlan=listvlan.get(i++);
			%>
			<tr>
				<td style="width:190px;"><input type="text" name="oltname" value="<%=oltnames[i]%>"/> <input style="width:30px;" type="text" name="oltnum" value="<%=oltnums[i]%>"/></td>
				<td style="width:150px;"><input style="width:80px;" type="text" value="<%=oltmodel[i]%>" name="oltmodel"/> <input style="width:30px;" type="text" value="<%=oltponnums[i]%>" name="oltponnum"/>PON口</td>				
				<td><input style="width:80px;" type="text" name="adip" value="<%=ip[1]%>"/></td>
				<td><input style="width:80px;"type="text" name="adgw" value="<%=ip[0]%>"/></td>
				<td><input style="width:80px;"type="text" name="pppoevlan" value="<%=vlan[0]%>"/></td>				
				<td><input style="width:80px;"type="text" name="voipvlan" value="<%=vlan[3]%>"/></td>
				<td><input style="width:80px;"type="text" name="iptvvlan" value="<%=vlan[1]%>"/></td>
				<td><input style="width:80px;"type="text" name="ylvlan" value="<%=vlan[2]%>"/></td>
				<td><input style="width:60px;"type="text" name="advlan" value="<%="3000"%>"/></td>
			</tr>
		<%}%>
		</table>
	</div>	
	<div class="box2" >
	<input type='submit' onclick="javascript:this.form.action='/xasj/exgpkj';"value='完成' >
	</form>
</div>
</form>
</div>
</div>	
</body>
</html>